package com.yanqu.road.entity.activity.apprentice.data;

import com.yanqu.road.entity.activity.apprentice.ApprenticeTalentData;

import java.util.List;

/**
 * 天资辩学日志
 */
public class ApprenticeUserPvpLog {

    /**
     * 发起玩家
     */
    private long userId;

    /**
     * 对方玩家
     */
    private long targetUserId;

    /**
     * 是否胜利
     */
    private boolean winFlag;

    /**
     * 增加的天资
     */
    private ApprenticeTalentData addTalent;

    /**
     * 发起方天资数据
     */
    private List<ApprenticeTalentData> talents;

    /**
     * 对方天资数据
     */
    private List<ApprenticeTalentData> targetTalents;

    /**
     * 时间
     */
    private long time;

    public ApprenticeUserPvpLog(long userId, long targetUserId, boolean winFlag, ApprenticeTalentData addTalent, List<ApprenticeTalentData> talents, List<ApprenticeTalentData> targetTalents) {
        this.userId = userId;
        this.targetUserId = targetUserId;
        this.winFlag = winFlag;
        this.addTalent = addTalent;
        this.talents = talents;
        this.targetTalents = targetTalents;
        this.time = System.currentTimeMillis();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(long targetUserId) {
        this.targetUserId = targetUserId;
    }

    public boolean isWinFlag() {
        return winFlag;
    }

    public void setWinFlag(boolean winFlag) {
        this.winFlag = winFlag;
    }

    public ApprenticeTalentData getAddTalent() {
        return addTalent;
    }

    public void setAddTalent(ApprenticeTalentData addTalent) {
        this.addTalent = addTalent;
    }

    public List<ApprenticeTalentData> getTalents() {
        return talents;
    }

    public void setTalents(List<ApprenticeTalentData> talents) {
        this.talents = talents;
    }

    public List<ApprenticeTalentData> getTargetTalents() {
        return targetTalents;
    }

    public void setTargetTalents(List<ApprenticeTalentData> targetTalents) {
        this.targetTalents = targetTalents;
    }

    public long getTime() {
        return time;
    }
}
